//
//  KYPublicClass.h
//  KYAdvertSDK
//
//  Created by 01 on 17/4/6.
//  Copyright © 2017年 蔡正军. All rights reserved.
//

#ifndef KYPublicClass_h
#define KYPublicClass_h

//----------------------接口---------------------------
#pragma mark - - 接口定义

//提交获取广告位ID接口
#define PostKeyInterface                  @"index.php?e=aff/siteapp.getad"
//获取广告接口
#define GetAdvertInterface                @"api/api_getAdv.php"
//统计浏览量接口
#define PostStatsInterface                @"stats.php"
//推送数据接口
#define NotificaitonInterface             @"api/api.php?type=push"
//推送统计接口
#define PushArrivalRateInterface          @"api/api.php?type=statistics"
//配置接口
#define ConfigureInterface                @"api/api.php?type=original_configure"

//----------------------其他字段定义---------------------------

#define KYRequestMethodPost                 @"POST"
#define KYRequestMethodGet                  @"GET"

//设备类型判断
#define isIPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)
#define isIPhone4 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO)
#define isIPhone6orIPhone7 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(750, 1334), [[UIScreen mainScreen] currentMode].size) : NO)
#define isIPhone6PorIPhone7P ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1242, 2208), [[UIScreen mainScreen] currentMode].size) : NO)

//----------------------适配---------------------------
#pragma mark - - 屏幕适配定义
//当前屏幕size
#define kDefaultSize                         CGSizeMake(kDeviceWidth, kDeviceHeight)
//当前屏幕适配宽度（以 iPhone5、iPhone5s为标准）
#define kCurrentScreenWidth(x)               ([UIScreen mainScreen].bounds.size.width/320.)*x

//新增当前屏幕适配宽度（以 iPhone6、iPhone6s为标准）
#define kRealScreenWidth(x)               ([UIScreen mainScreen].bounds.size.width/375.)*x
//当前屏幕frame
#define kDeviceFrame                         [[UIScreen mainScreen] bounds]
//当前屏幕出去状态栏高度
#define kNavViewHight                        ([UIScreen mainScreen].bounds.size.height-20)
//当前屏幕宽度
#define kDeviceWidth                         ([UIScreen mainScreen].bounds.size.width)
//当前屏幕总高度
#define kDeviceHeight                        ([UIScreen mainScreen].bounds.size.height)
//全局边界
#define KY_MARGIN (isIPhone6PorIPhone7P?15:10) 


//----------------------字体---------------------------
#pragma mark - - 判断字体

#define kSystemFont(size)                 [UIFont systemFontOfSize:size]
#define kBoldSystemFont(size)             [UIFont boldSystemFontOfSize:size]

#define HeitiBold                   @"STHeitiSC-Medium"
#define Heiti                       @"STHeitiSC-Light"
#define HeitiTC                     @"STHeitiTC-Light"
#define HelBold                     @"Helvetica-Bold"
#define Hel                         @"Helvetica"
#define HelNeue                     @"HelveticaNeue-Light"
//----------------------颜色---------------------------
#pragma mark - - 定义颜色

#endif /* KYPublicClass_h */

#ifdef __OBJC__

#endif
